#include <stdio.h>
#include <unistd.h>
#include <pthread.h>

void *thread_run(void *arg)
{
	while(1){
		printf("I am thread\n");
		sleep(1);
	}
}

int main()
{
	pthread_t tid;
	pthread_create(&tid,NULL,thread_run,NULL);

	while(1){
		printf("I am main thread\n");
		sleep(1);
	}
	return 0;
}
